#include <iostream>
#include "point.h"

void Piont::setXY(int x, int y)
{
    m_x = x;

    m_y = y;
}

int Piont::distance(Piont &p)
{
    int dis = (p.m_x - m_x)*(p.m_x - m_x) + (p.m_y - m_y)*(p.m_y - m_y);
    
    return dis;
}